package com.hengxinguotong.hxgtwygsp.ui.supervise.warning.manager;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.hengxinguotong.hxgtwygsp.R;
import com.hengxinguotong.hxgtwygsp.model.ManagerDeduct;

import java.util.List;

/**
 * Created by CS-Yong
 * 2019/8/11  20:28
 */
public class WarningManagerAdapter extends BaseQuickAdapter<ManagerDeduct,BaseViewHolder> {

    public WarningManagerAdapter(int layoutResId, @Nullable List<ManagerDeduct> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, ManagerDeduct item) {
        helper.setText(R.id.warning_manager_name,item.getName());
        helper.setText(R.id.warning_score,"被记"+item.getScore()+"分");
        helper.setText(R.id.warning_community_name,item.getCompany());
        helper.setVisible(R.id.warning_card_iv,false);
        helper.setVisible(R.id.warning_card_text,false);
    }
}
